<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--sweetalert2-->
    <link href="../dist/sweetalert2.min.css" rel="stylesheet">
    <script src="../dist/sweetalert2.min.js" type="text/javascript"></script>
</head>
<body>


<!--关于 fetch 的用法  -->
<script>


            //资源路径
           const ipAPI = './json/2.txt'


/*Promise[[Prototype]]: Promise[[PromiseState]]: "fulfilled"[[PromiseResult]]: Response*/
            const p=fetch(ipAPI)    //promise对象   而且封装好了一个  response 对象作为 promise对象的 PromiseResult

            console.log(p)




</script>

</body>
</html>